import hbRequest from '@/service'

import { IDataType } from '@/service/types'

export function getPageListData(url: string, queryInfo: any) {
  return hbRequest.post<IDataType>({
    url: url,
    data: queryInfo
  })
}

export function createPageModelInfo(url: string, queryInfo: any) {
  return hbRequest.post<IDataType>({
    url: url,
    data: queryInfo
  })
}

export function editPageModelInfo(url: string, queryInfo: any) {
  return hbRequest.patch<IDataType>({
    url: url,
    data: queryInfo
  })
}

export function deletePageModelInfo(url: string) {
  return hbRequest.delete<IDataType>({
    url: url
  })
}
